import request from '@/common/request'
import request3 from '@/common/request3'
//获取员工列表
export function getPermitUserList(data) {
  return request({
    url: '/apiqywx/wxwork/getPermitUserList',
    method: 'post',
	data:data
  })
}
//获取员工的客户列表
export function getCustomerList(data) {
    return request({
        url: '/apiqywx/wxwork/getCustomerList',
        method: 'post',
        data:data
    })
}
//获取聊天记录列表
export function getMessageList(data) {
    return request({
        url: '/apiqywx/wxwork/getMessageList',
        method: 'post',
        data:data
    })
}
//获取媒体资源
export function getMediaData(data) {
    return request3({
        url: '/apiqywx/wxwork/uploadVideo',
        method: 'post',
        data:data
    })
}

//获取群列表
export function getGroupChatList(data) {
    return request3({
        url: '/apiqywx/wxwork/getGroupChatList',
        method: 'post',
        data:data
    })
}

//获取群聊天记录
export function getGroupChatMsg(data) {
    return request3({
        url: '/apiqywx/wxwork/getGroupChatMsg',
        method: 'post',
        data:data
    })
}

//定位到单聊天记录
export function getActiveMsg(data) {
    return request3({
        url: '/apiqywx/wxwork/getActiveMsg',
        method: 'post',
        data:data
    })
}

//定位到群聊天记录
export function getActiveGroupMsg(data) {
    return request3({
        url: '/apiqywx/wxwork/getActiveGroupMsg',
        method: 'post',
        data:data
    })
}

//同步成员是否开启会话存档
export function upadteHuihua() {
    return request3({
        url: '/apiqywx/wxwork/upadteHuihua',
        method: 'post'
    })
}
